<template>
  <view>
    <view class="u-p-24">
      <view class="item" @click="$goto()">
        <view class="title">更换头像</view>
        <view class="flex-row align-center">
          <view class="sub"></view>
          <u-avatar size="40" bg-color="red" src="https://picsum.photos/id/310/200/200"></u-avatar>
          <uni-icons type="arrowright" color="rgba(0,0,0,0.2)" size="20"></uni-icons>
        </view>
      </view>

      <view class="item" @click="$goto('/pages/account/cg-pwd')">
        <view class="title">设置登录密码</view>
        <view class="flex-row align-center">
          <view class="sub"></view>
          <uni-icons type="arrowright" color="rgba(0,0,0,0.2)" size="20"></uni-icons>
        </view>
      </view>
      
      <view class="item" @click="$goto('/pages/account/safe')">
        <view class="title">账户安全</view>
        <view class="flex-row align-center">
          <view class="sub"></view>
          <uni-icons type="arrowright" color="rgba(0,0,0,0.2)" size="20"></uni-icons>
        </view>
      </view>
    </view>

    <u-gap height="120"></u-gap>
    <my-btn :size="[702, 80, 30]" bg="#fff" color="#F6AD3C">退出登录</my-btn>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">
  page {
    background: #f0f0f0;
  }

  .item {
    width: 702rpx;
    height: 90rpx;
    background: #FFFFFF;
    border-radius: 12rpx;
    margin-bottom: 36rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24rpx;

    .title {
      font-size: 30rpx;
    }

    .sub {
      color: rgba(0, 0, 0, 0.4);
      font-size: 26rpx;
      padding-right: 8rpx;
    }
  }
</style>
